<html>
<head><meta charset="utf-8"><title>How to stop compiler from spamming this message · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html">How to stop compiler from spamming this message</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="223325923"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223325923" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kevin Tran <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223325923">(Jan 20 2021 at 02:50)</a>:</h4>
<p>I set <code>RUSTC_LOG</code> for debug output once, but now when I run <code>./x.py</code> without <code>RUSTC_LOG</code> set, I still get this:</p>
<div class="codehilite"><pre><span></span><code> = note: the static max level is `info`
 = help: to enable DEBUG logging, remove the `max_level_info` feature
warning: some trace filter directives would enable traces that are disabled statically
 | `rustc_mir::borrow_check::diagnostics::mutability_errors=debug` would enable the DEBUG level for the `rustc_mir::borrow_check::diagnostics::mutability_errors` target
</code></pre></div>



<a name="223326041"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223326041" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223326041">(Jan 20 2021 at 02:52)</a>:</h4>
<p><span class="user-mention" data-user-id="351526">@Kevin Tran</span> that looks like cargo cached the output</p>



<a name="223326049"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223326049" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223326049">(Jan 20 2021 at 02:52)</a>:</h4>
<p>try <code>touch compiler/rustc_mir/src/lib.rs</code> maybe?</p>



<a name="223326128"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223326128" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223326128">(Jan 20 2021 at 02:54)</a>:</h4>
<p>see also <a href="https://github.com/rust-lang/cargo/issues/8374">https://github.com/rust-lang/cargo/issues/8374</a></p>



<a name="223326521"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223326521" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kevin Tran <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223326521">(Jan 20 2021 at 03:01)</a>:</h4>
<p>still spamming</p>



<a name="223326660"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223326660" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223326660">(Jan 20 2021 at 03:03)</a>:</h4>
<p>not sure then, sorry - can you post the output around it? what is x.py building?</p>



<a name="223327206"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223327206" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kevin Tran <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223327206">(Jan 20 2021 at 03:13)</a>:</h4>
<p>I'm running a ui test using <code>./x.py test</code>. Output is attached. <a href="/user_uploads/4715/uR2dEkiKwrZKLi4mdf_LNvxk/output.txt">output.txt</a></p>



<a name="223327234"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223327234" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223327234">(Jan 20 2021 at 03:13)</a>:</h4>
<p>oh I see - it cached the output for <em>everything</em> it built</p>



<a name="223327258"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223327258" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223327258">(Jan 20 2021 at 03:13)</a>:</h4>
<p>hmm, I'm not sure how to avoid that - you want something like <code>RUSTFLAGS_NOT_BOOTSTRAP</code> but for env variables</p>



<a name="223327302"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223327302" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223327302">(Jan 20 2021 at 03:14)</a>:</h4>
<p>for now I think you'll have to rebuild to get rid of the warnings :/</p>



<a name="223327334"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223327334" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223327334">(Jan 20 2021 at 03:15)</a>:</h4>
<p>although it might be nice since you're rebuilding anyway to set <code>debug-logging = true</code>, that way you'll have logging if you need it next time</p>



<a name="223327454"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223327454" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kevin Tran <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223327454">(Jan 20 2021 at 03:17)</a>:</h4>
<p>huh, <code>debug-logging = true</code> was already set</p>



<a name="223327470"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20stop%20compiler%20from%20spamming%20this%20message/near/223327470" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20stop.20compiler.20from.20spamming.20this.20message.html#223327470">(Jan 20 2021 at 03:17)</a>:</h4>
<p>oh right the env variables are being passed to the stage0 compiler</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>